import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
    history: createWebHashHistory(
        window.__MICRO_APP_BASE_ROUTE__ ? `/#${window.__MICRO_APP_BASE_ROUTE__}` : '/',
    ),
    routes: [
        // 全局-重大保障
        {
            path: '/MajorGuarantee',
            name: 'MajorGuarantee',
            component: () => import('@/views/MajorGuarantee/index.vue'),
        },
        // 全局-社会机构
        {
            path: '/SocialOrg',
            name: 'SocialOrg',
            component: () => import('@/views/SocialOrg/index.vue'),
        },
    ],
})

export default router
